<el-form ref="form" :model="form" :rules="rulesList" label-width="140px">
    <el-row>
        <span>基本信息</span>
    </el-row>
    <el-row :gutter="10">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="创建人" prop="GWGCORIU_NAME">
                <el-input v-model="form.GWGCORIU_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="所属组织" prop="GWGCORIG_NAME">
                <el-input v-model="form.GWGCORIG_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="创建时间" prop="GWGCDATE">
                <el-date-picker
                        v-model="form.GWGCDATE"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="招标编号" prop="GWGC001">
                <el-input v-model="form.GWGC001" :readonly="isAddGwde">
                    <!--readonly :clearable="!gwgc001show"-->
                   <!-- <i v-show="!gwgc001show" class="el-icon-search el-input__icon" @click="openGwgc001" slot="suffix"></i>-->
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="项目名称" prop="GWGC022">
                <el-input v-model="form.GWGC022" :readonly="isAddGwde">
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户" prop="GWGC023">
                <el-input v-model="form.GWGC023_NAME" readonly>
                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc023" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="组织形式" prop="GWAK009">
                <el-select v-model="form.GWAK009" :disabled="isAddGwde">
                    <el-option v-for="item in selectOptions.gwak009Options"
                               :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="开标时间" prop="GWGC024">
                <el-date-picker
                        v-model="form.GWGC024"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;" :disabled="isAddGwde">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="保证金截止时间" prop="GWGC002">
                <el-date-picker
                        v-model="form.GWGC002"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;" :disabled="isAddGwde">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否一年以上分期" prop="GWGC003">
                <el-select v-model="form.GWGC003" clearable :disabled="isAddGwde">
                    <el-option v-for="item in selectOptions.sys_n_y" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否授权" prop="GWGC004">
                <el-select v-model="form.GWGC004" clearable :disabled="isAddGwde">
                    <el-option v-for="item in selectOptions.sys_n_y" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="授权代理商">
                <el-input v-model="form.GWGC005_NAME" readonly :clearable="!isAddGwde">
                    <i v-show="!gwgc004Disabled" class="el-icon-search el-input__icon" @click="openGwgc005" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否新增代理商">
                <el-select v-model="form.GWGC006" clearable :disabled="gwgc004Disabled">
                    <el-option v-for="item in selectOptions.sys_n_y" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
            <el-form-item label="附加费用" prop="GWGC007_LIST">
                <el-select
                        v-model="form.GWGC007_LIST"
                        multiple
                        :disabled="isAddGwde">
                    <el-option v-for="item in selectOptions.gwgc007Options" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="投标单位" prop="GWGC028_NAME">
                <el-input v-model="form.GWGC028_NAME" readonly :clearable="!isAddGwde">
                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc028" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWGC020" :readonly="isAddGwde">
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="16" :sm="16" :md="16" :lg="16" :xl="16">
            <el-form-item label="附件" class="c-upload-text" prop="GWGC029">
                <el-input v-model="form.GWGC029" v-show="true"></el-input>
                <el-upload
                        style="width: 90%"
                        class="upload-demo"
                        ref="uploadFile"
                        v-model="form.GWGC029"
                        :action="uploadUrl"
                        :file-list="basicInfo_fileList"
                        list-type="text"
                        :on-preview="handleBasicInfoFilePreview"
                        :before-upload="beforeUploadBasicInfoFiles"
                        :on-remove="handleBasicInfoFileRemove"
                        :on-success="successUploadBasicInfoFiles"
                        :auto-upload="false">
                    <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
                </el-upload>
                <!--<a :href="address" target="_blank" style="width:40px;">下载</a>-->
            </el-form-item>
        </el-col>
    </el-row>
    <!--  文件上传  -->

<!--    <el-row>-->
<!--        <span>样车申请</span>-->
<!--    </el-row>-->
    <el-row v-show="false">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="样车申请" prop="GWGC008">
                <el-select v-model="form.GWGC008" clearable :disabled="isAddGwde">
                    <el-option v-for="item in selectOptions.sys_n_y" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
             <el-form-item label="样车申请附件" class="c-upload-text">
                 <el-input v-model="form.GWGC009" readonly></el-input>
                 <el-upload
                         class="upload-demo"
                         ref="upload2"
                         v-model="form.GWGC009"
                         :action="files"
                         :file-list="fileList"
                         list-type="text"
                         :on-preview="handleFilePreview"
                         :before-upload="beforeUploadFiles"
                         :on-remove="handleFileRemove"
                         :on-success="successUploadFiles"
                         :auto-upload="false" :disabled="isAddGwde">
                     <el-button v-show="!isAddGwde" slot="trigger" size="small" type="primary">选取文件</el-button>
                 </el-upload>
                 <!--<a :href="address" target="_blank" style="width:40px;">下载</a>-->
             </el-form-item>
         </el-col>
    </el-row>
    <el-row>
        <span>商务制作</span>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="商务制作员" prop="GWGC010_NAME">
                <el-input v-model="form.GWGC010_NAME" readonly >
<!--                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc010" slot="suffix"></i>-->
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="商务审核员" prop="GWGC011_NAME">
                <el-input v-model="form.GWGC011_NAME" readonly >
<!--                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc011" slot="suffix"></i>-->
                </el-input>
            </el-form-item>
        </el-col>
    </el-row>
    <el-row>
        <span>技术制作</span>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="技术制作员" prop="GWGC012_NAME">
                <el-input v-model="form.GWGC012_NAME" readonly >
<!--                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc012" slot="suffix"></i>-->
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="技术审核员" prop="GWGC013_NAME">
                <el-input v-model="form.GWGC013_NAME" readonly >
<!--                    <i v-show="!isAddGwde" class="el-icon-search el-input__icon" @click="openGwgc013" slot="suffix"></i>-->
                </el-input>
            </el-form-item>
        </el-col>
    </el-row>
    <el-row v-if="isAddGwde">
        <span>中标信息</span>
    </el-row>
    <el-row v-if="isAddGwde">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否中标">
                <el-select v-model="form.GWGC014" @change="gwgc014Change" clearable>
                    <el-option v-for="item in selectOptions.sys_n_y" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="中标单位">
                <el-input v-model="form.GWGC015"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="中标总价(万元)">
                <el-input v-model="form.GWGC016" readonly></el-input>
            </el-form-item>
        </el-col>
<!--        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--            <el-form-item label="中标服务费">-->
<!--                <el-input-number v-model="form.GWGC017" :min="0.0000" precision="4" style="width: 100%;"></el-input-number>-->
<!--            </el-form-item>-->
<!--        </el-col>-->
<!--        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--            <el-form-item label="履约保证金">-->
<!--                <el-input-number v-model="form.GWGC018" :min="0.0000" precision="4" style="width: 100%;"></el-input-number>-->
<!--            </el-form-item>-->
<!--        </el-col>-->
<!--        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--            <el-form-item label="质保金">-->
<!--                <el-input-number v-model="form.GWGC019" :min="0.0000" precision="4" style="width: 100%;"></el-input-number>-->
<!--            </el-form-item>-->
<!--        </el-col>-->
    </el-row>
    <el-row>
        <span>投标车型明细</span>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re" style="margin-top: 10px;">
                <div class="pos-ab">
                    <el-button v-show="!isDetail" type="primary" icon="el-icon-plus" size="mini" class="z-depth-2"
                               @click="addGwgd">添加
                    </el-button>
                    <el-button v-show="!isDetail" type="primary" icon="el-icon-delete" size="mini" class="z-depth-2"
                               @click="delGwgd">删除
                    </el-button>
                </div>
                <div class="table-responsive" style="margin-top: 5px;">
                    <table id="gwgi002_gwgd_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwgi002_gwgd_table">
                    </table>
                </div>
            </div>
        </el-col>
    </el-row>
    <el-row v-show="isAddGwde" style="margin-top: 10px;">
        <span>投标反馈明细</span>
    </el-row>
    <el-row v-show="isAddGwde">
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re" style="margin-top: 10px;">
                <div class="pos-ab">
                    <el-button v-show="!gwgeBtnDisabled" type="primary" icon="el-icon-plus" size="mini" class="z-depth-2"
                               @click="addGwge">添加
                    </el-button>
                    <el-button v-show="!gwgeBtnDisabled" type="primary" icon="el-icon-delete" size="mini" class="z-depth-2"
                               @click="delGwge">删除
                    </el-button>
                </div>
                <div class="table-responsive" style="margin-top: 5px;">
                    <table id="gwgi002_gwge_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwgi002_gwge_table">
                    </table>
                </div>
            </div>
        </el-col>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button v-show="!saveBtnDisabled" type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwgi002_edit"], $.noop);
</script>
